package com.hightrast.service.api.domain.qo.rastRole;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode
@ApiModel(value="用户绑定角色请求")
public class AddUserRoleQo {

    @ApiModelProperty(value = "角色id")
    @NotNull(message = "Role ID can be empty")
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    @NotEmpty(message = "The role name cannot be empty")
    private String roleName;

    @ApiModelProperty(value = "绑定的用户")
    @NotNull(message = "Binding user cannot be empty")
    private Long userId;

    @ApiModelProperty(value = "用户名称")
    private String username;
}
